package com.zhkc.wisdom.common.base.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * SA-TOKEN配置类，暂时放在base里面，后期可以考虑把所有配置放到configure
 */
@Component
@ConfigurationProperties(prefix = "zhkc.sa")
@Data
public class SaTokenProperties {

    private String tokenName = "satoken";

    private long timeout = 28800;

    private long activeTimeout = 3600;

    private Boolean isConcurrent = true;

    private Boolean isShare = false;

    private String tokenStyle = "uuid";

    private Boolean isLog = false;

//    private String secretKey = "kQwIOrYvnXmSDkwEiFngrKidMcdrgKor";

    private String jwtSecretKey = "aadqiowheqjwkbehrfewbfjsdafaa";
}
